import 'package:flutter/material.dart';
import '../model/category_goods.dart';

class CategoryGoodsProvide with ChangeNotifier {
  List<CategoryGoodsItem> categoryGoodsList = [];

  setCategoryGoodsList(List<CategoryGoodsItem> list) {
    categoryGoodsList = list;

    notifyListeners();
  }

  // 加载更多的时候使用
  setMoreCategoryGoodsList(List<CategoryGoodsItem> list) {
    categoryGoodsList.addAll(list);

    notifyListeners();
  }
}
